﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Job.Web.Framework;

namespace Job.Web
{
    public partial class ErrorMessage : BasePage
    {
        string ReturnURL
        {
            get
            {
                return Server.UrlDecode(myR["returnURL"].StringValue);
            }
        }

        //1=success,0=fail.
        int Flag
        {
            get
            {
                return myR["flag"].IntValue;
            }
        }

        string message
        {
            get
            {
                return Server.UrlDecode(myR["message"].StringValue);
            }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            
            lblMessage.Text = message;
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect(ReturnURL);
            //ClientScript.RegisterClientScriptBlock(this.GetType(),"", "<script>window.history.back(-2);</script>");
        }
    }
}
